package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.List;

/**
 * 门店用户对象 jy_store_user
 *
 * @author ruoyi
 * @date 2021-11-17
 */
public class StoreUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** openid */
    private String openId;

    /** unionid */
    private String unionId;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickName;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 姓名 */
    @Excel(name = "姓名")
    private String userName;

    /** 头像 */
    @Excel(name = "头像")
    private String headImg;

    /** 性别 */
    private Integer gender;

    /** 帐号状态 */
    @Excel(name = "帐号状态")
    private String state;

    /** 对应门店id */
    private Long storeId;

    /** 1表示门店用户，2表示员工用户 */
    private String userType;

    /** 密码*/
    private String password;

    /** 师父id*/
    private Long staffMasterId;

    /** 分佣比例*/
    private BigDecimal staffCommissionRate;

    /**
     * 绑定为下级本地路径
     */
    private String belowImageLocal;
    /**
     * 绑定为下级二维码url
     */
    private String belowImageUrl;
    /**
     * 绑定为下级二维码路径
     */
    private String belowPage;

    /**
     * 移动端权限
     */
    List<StoreUserRole> storeUserRoles;

    public List<StoreUserRole> getStoreUserRoles() {
        return storeUserRoles;
    }

    public void setStoreUserRoles(List<StoreUserRole> storeUserRoles) {
        this.storeUserRoles = storeUserRoles;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOpenId(String openId)
    {
        this.openId = openId;
    }

    public String getOpenId()
    {
        return openId;
    }
    public void setUnionId(String unionId)
    {
        this.unionId = unionId;
    }

    public String getUnionId()
    {
        return unionId;
    }
    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public String getNickName()
    {
        return nickName;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setHeadImg(String headImg)
    {
        this.headImg = headImg;
    }

    public String getHeadImg()
    {
        return headImg;
    }
    public void setGender(Integer gender)
    {
        this.gender = gender;
    }

    public Integer getGender()
    {
        return gender;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }

    public void setPassword(String password)
    {
        this.password = password;
    }
    public String getPassword()
    {
        return password;
    }

    public void setStoreId(Long storeId)
    {
        this.storeId = storeId;
    }
    public Long getStoreId()
    {
        return storeId;
    }

    public void setUserType(String userType)
    {
        this.userType = userType;
    }
    public String getUserType()
    {
        return userType;
    }

    public void setStaffMasterId(Long staffMasterId)
    {
        this.staffMasterId = staffMasterId;
    }
    public Long getStaffMasterId()
    {
        return staffMasterId;
    }

    public void setStaffCommissionRate(BigDecimal staffCommissionRate)
    {
        this.staffCommissionRate = staffCommissionRate;
    }
    public BigDecimal getStaffCommissionRate()
    {
        return staffCommissionRate;
    }

    public String getBelowImageLocal() {
        return belowImageLocal;
    }
    public void setBelowImageLocal(String belowImageLocal) { this.belowImageLocal = belowImageLocal; }

    public String getBelowImageUrl() {
        return belowImageUrl;
    }
    public void setBelowImageUrl(String belowImageUrl) {
        this.belowImageUrl = belowImageUrl;
    }

    public String getBelowPage() {
        return belowPage;
    }
    public void setBelowPage(String belowPage) {
        this.belowPage = belowPage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openId", getOpenId())
            .append("unionId", getUnionId())
            .append("nickName", getNickName())
            .append("phone", getPhone())
            .append("userName", getUserName())
            .append("headImg", getHeadImg())
            .append("gender", getGender())
            .append("state", getState())
            .append("delState", getDelState())
            .append("delUser", getDelUser())
            .append("delType", getDelType())
            .append("delTime", getDelTime())
            .append("createBy", getCreateBy())
            .append("createType", getCreateType())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateType", getUpdateType())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
